package pl.dream.team.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "inscription")
public class Inscription implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1829228045716261900L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "MySequenceGenerator")
	@SequenceGenerator(allocationSize = 1, schema = "myschema", name = "MySequenceGenerator", sequenceName = "mysequence")
	private Integer idInscription;

	@Column(name = "meterState")
	private Double meterState;

	@Column(name = "expenses")
	private Double expenses;

	@Column(name = "date")
	@Temporal(TemporalType.DATE)
	private Date insertiondate;

	@Column(name = "fuelPrice")
	private Double fuelPrice;
	
	@Column(name = "averageFuelConsumption")
	private Double averageFuelConsumption;
	
	@Column(name ="amount")
	private Double amount;
	
	@Column(name ="fuelKind")
	private String fuelKind;

	public String getFuelKind() {
		return fuelKind;
	}

	public void setFuelKind(String fuelKind) {
		this.fuelKind = fuelKind;
	}

	public Double getMeterState() {
		return meterState;
	}

	public void setMeterState(Double meterState) {
		this.meterState = meterState;
	}

	public Double getExpenses() {
		return expenses;
	}

	public void setExpenses(Double expenses) {
		this.expenses = expenses;
	}

	public Date getInsertiondate() {
		return insertiondate;
	}

	public void setInsertiondate(Date insertiondate) {
		this.insertiondate = insertiondate;
	}

	public Double getFuelPrice() {
		return fuelPrice;
	}

	public void setFuelPrice(Double fuelPrice) {
		this.fuelPrice = fuelPrice;
	}

	public Double getAverageFuelConsumption() {
		return averageFuelConsumption;
	}

	public void setAverageFuelConsumption(Double averageFuelConsumption) {
		this.averageFuelConsumption = averageFuelConsumption;
	}
	
	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}
	
	public Integer getIdInscription() {
		return idInscription;
	}

	public void setIdInscription(Integer idInscription) {
		this.idInscription = idInscription;
	}

}
